package com.hu.green.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonRawValue;
import com.hu.green.utils.JsonArrayTypeHandler;
import lombok.Data;
import org.json.JSONArray;

import java.util.Arrays;
import java.util.List;

@Data
@TableName(value = "php",autoResultMap = true)
public class Php {

    private Integer id; // 唯一标识

    private String account; // 账号

    private String userName; // 用户名

    private String url; // 头像地址

    private String title; // 标题

    private String message; // 帖子信息

    @TableField(typeHandler = JsonArrayTypeHandler.class, exist = false)
    private List<String> img;

    private String image;


}
